﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;

namespace test {
    class Program {
        static void Main(string[] args) {
            Process p = new Process();
            p.StartInfo.FileName = @"C:\testDB\EventCheck.exe";
            p.StartInfo.Arguments = "3-";
            p.Start();
            p.WaitForExit();
            var i = p.ExitCode.ToString();

            Console.WriteLine(p.ExitCode.ToString());
        }
    }
}
